package com.amado.course50java8;

import java.util.Optional;

import com.amado.course50java8.vo.Goods;

public class Java806Optional3OrElse {

	public static void main(String[] args) {
		//Return the value if present, otherwise return other.
		//返回值如果存在，否则返回 other 。
		System.out.println(Optional.ofNullable("aaa").orElse("is null"));;
		System.out.println(Optional.ofNullable(null).orElse("is null"));;
	}
}
